package com.dy.nygl.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.dy.nygl.pojo.Energy;

@Component("energyDao")
public interface EnergyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Energy record);

    int insertSelective(Energy record);

    Energy selectByPrimaryKey(@Param("id")Integer id);

    int updateByPrimaryKeySelective(Energy record);

    int updateByPrimaryKey(Energy record);
    
    List<Energy> selectAll();
    
}